﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace HotelManageSystem.Models
{
    public class ClientTypeInfoModel
    {
        [Key]
        [ScaffoldColumn(false)]
        public int ID { get; set; }

        [Required(ErrorMessage = "必须填写客户类型！")]
        [DisplayName("客户类型名称")]
        public string Name { get; set; }

        [RegularExpression(@"(^(0([\.]\d*[0-9]+)|0|1)$)", ErrorMessage = "正能输入0~1之间的数！")]
        [DisplayName("折扣率")]
        public string Discount { get; set; }//折扣

        [DisplayName("备注")]
        public string Remark { get; set; }
    }
}